<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div class="span12 box-content">
<c:if test="${user.superAdmin }">
	<form class="form-inline well" id="chooseHelperFilter_form">
		<div class="controls controls-row">
			<label>学院:</label>
			<select class="span2" style="display:inline;" name="college" >
			  <c:forEach items="${colleges }" var="c">
			 	 <option value="${c.id }" ${c.id==clgId?"selected='selected'":""}>${c.name }</option>
			  </c:forEach>
			</select>
			<button type="button" id="chooseHelperFilter_go">筛选</button>
		</div>
	</form>
	</c:if>
	<div class="span12">本学院选题模式设置为按教师选,以下为题目还没有选择完毕的教师</div>
	<div class="span12">共有${teaCount}条数据,${totalPage }页</div>
	<table class="table table-striped table-bordered" id="choose_by_tea_list_table">
		<thead>
		 <tr>
		 	<th style="width:10%">指定教师</th>
		 	<th style="width:40%">还未选定的题目</th>
		 	<th style="width:40%">已选意向学生</th>
		 	<th style="width:10%">操作</th>
		 </tr>
		</thead>
		<tbody>
		<c:forEach items="${teaList }" var="t">
			<tr>
				<td>${t.tea.name }</td>
				<td>
					<form style="margin: 0px;margin-top: 1%;"><c:forEach items="${t.prjList }" var="prj"><input type="radio" name="prjId" value="${prj.id}" style="margin-left: 2%"/>${prj.name }</c:forEach></form>
				</td>
				<td>
					<form style="margin: 0px;margin-top: 1%;"><c:forEach items="${t.stuList }" var="stu"><input type="radio" name="stuId"  value="${stu.id}" style="margin-left: 2%"/>${stu.name }</c:forEach></form>		
				</td>
				<td>
					<button class="btn tea_choose_confirm" disabled="disabled" >选定</button>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination  pagination-centered"
			data-totalPage="${totalPage }" 
			data-currentPage="${page }" 
			data-url="<%=basePath%>admin/choose/showChooseHelper/${clgId }/{page}"
			style="display:none">
	</div>
</div>